package com.szzg10.thinking.chapter18;

import java.io.IOException;
import java.io.StringReader;

public class MemoryInput {

	public static void main(String[] args) throws IOException {
		String str = BufferedInputFile.read(BufferedInputFile.FILE_NAME);
		StringReader reader = new StringReader(str);
		
		int c = -1;
		while((c = reader.read()) != -1) {
			System.out.print((char)c);
		}
	}
}
